<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../vue.js"></script>
  <style>
    .A {
      width: 300px;
      height: 300px;
      background: orange;
    }

    .B {
      width: 200px;
      height: 200px;
      background: rgb(41, 64, 192);
    }

    .C {
      width: 100px;
      height: 100px;
      background: rgb(202, 23, 62);
    }
  </style>


</head>

<body>
  <div id="app">

    <div class="A" @click.self="clickA">
      A
      <div class="B" @click.self="clickB">
        B
        <div class="C" @click.self="clickC">
          C
        </div>

      </div>

    </div>

    <a @click.prevent href="https://www.baidu.com">go to baidu</a>

    <input type="text" @keyup.left="handleKeyup">


  </div>



  <script>

    var vm = new Vue({
      el: "#app",
      methods: {
        clickA() {
          console.log("A")
        },
        clickB() {
          console.log("B")
        },
        clickC() {
          console.log("C")
        },
        handleKeyup(event) {
          console.log('handleKeyup..', event.target)
        }
      }
    })

  </script>


</body>

</html>